﻿@inject IStringLocalizer<BootstrapBlazor.Shared.Samples.Markdowns> Localizer

<Markdown Height="500" MinHeight="300" Placeholder="@Localizer["MarkdownsCommonPropertyPlaceHolder"]" PreviewStyle="PreviewStyle.Tab" InitialEditType="InitialEditType.Wysiwyg" Language="@Language"></Markdown>

@code {
    private string? Language { get; set; }

    /// <summary>
    /// OnInitialized 方法
    /// </summary>
    /// <returns></returns>
    protected override void OnInitialized()
    {
        Language = CultureInfo.CurrentUICulture.Name;
    }
}
